<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
    <head>
        <meta name="generator" content="HTML Tidy, see www.w3.org">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<meta http-equiv="content-Language" content="pt-BR"/> 

        <title>Quiron</title>
<style type="text/css">
        @import url("/stylesheets/scaffold.css");
    
</style>
        <%= javascript_include_tag "prototype" %><%= javascript_include_tag "effects" %>
    </head>

    <body>
        <div id="masthead">
            <img alt="" src="/images/header.gif">
        </div>

        <div id="page">
            <div id="content">
                <%= yield%><%if flash[:notice]%>
<script type="text/javascript">
alert("<%= flash[:notice]%>")
</script>
                 <%end%>
            </div>

            <div id="navBar">
                <div id="search">
                   <% if not session[:usuario]%> <fieldset>
                        <legend>Autenticação</legend>
                        <% form_tag :controller => "plataforma", :action => "login" do%> 

                        <table>
                            <tr>
                                <td><label for=
                                "usuario_email">Login:</label></td>

                                <td>
                            <%= text_field 'login', '', :size => 15%></td>
							
                            </tr>

                            <tr>
                                <td><label for=
                                "usuario_senha">Senha:</label></td>

                                <td>
                                <%= password_field 'senha' , '',:size => 15%></td>
                            </tr>
							
                            <tr>
                                <td>
                                </td>

                                <td><%= submit_tag "Logar"%></td>
                            </tr>
                        </table>						
                        <% end %>
                    </fieldset>
					<%else%>
						<%= link_to "LogOut", :controller => "plataforma", :action=>"logout" %>
						<%end%>
                </div>
				

                <div class="relatedLinks">
                    <h3></h3>

                    <table>
                        

						<tr>
                            <td><img alt="" src=
                            "/images/user.gif"></td>

                            <td>
                            <%= link_to "Solicitar Cadastro", :controller => 'usuarios', :action => "new" %></td>
                        </tr>


                    </table>
                </div>

                <div class="relatedLinks">
                    <h3></h3>

                    <table>
                        <tr>
                            <td></td>
                        </tr>

                        <tr>
                            <td></td>
                        </tr>

                        <tr>
                            <td></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>

        <div id="siteInfo">
        </div>
    </body>
</html>

